package com.launch.wlfw.pojo;

import com.launch.wlfw.common.Common;

import java.io.Serializable;
import java.util.Date;

/**
 * 读者信息
 *
 * @author liuwei
 * @date 2023/06/30
 */
public class ReaderInfo implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String realName;
    private String sex;
    private Date birthday;
    private String address;
    private String tel;
    private String email;
    private Date registerDate;
    private String readerNumber;
    private Integer roleId;
    private static final long serialVersionUID = 1L;


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getUsername() {
        return username;
    }


    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }


    public String getPassword() {
        return password;
    }


    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }


    public String getRealName() {
        return realName;
    }


    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }


    public String getSex() {
        return sex;
    }


    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }


    public Date getBirthday() {
        return birthday;
    }


    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }


    public String getAddress() {
        return address;
    }


    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }


    public String getTel() {
        return tel;
    }


    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }


    public String getEmail() {
        return email;
    }


    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }


    public Date getRegisterDate() {
        return registerDate;
    }


    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }


    public String getReaderNumber() {
        return readerNumber;
    }


    public void setReaderNumber(String readerNumber) {
        this.readerNumber = readerNumber == null ? null : readerNumber.trim();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String generateKey(){
        return this.readerNumber + Common.CACHE_SYMBOL_TWO +
                this.username + Common.CACHE_SYMBOL_TWO +
                this.tel + Common.CACHE_SYMBOL_TWO;
    }


}
